package com.zl.tby.core.config;

import com.zaxxer.hikari.HikariDataSource;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

import javax.sql.DataSource;

@Configuration
public class AppConfig {

    @Bean(value = "main", typed = true)
    public DataSource mainDataSource(@Inject("${database.main}") HikariDataSource dataSource) {
        return dataSource;
    }

}
